<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span id="local-6989586621679071720"><span id="local-6989586621679071721"></span></span><span class="hs-pragma">{-# OPTIONS -fno-warn-unused-imports #-}</span><span>
</span><span id="line-2"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Data.Time.LocalTime.Internal.TimeOfDay</span><span>
</span><span id="line-3"></span><span class="hs-special">(</span><span>
</span><span id="line-4"></span><span>    </span><span class="annot"><span class="hs-comment">-- * Time of day</span></span><span>
</span><span id="line-5"></span><span>    </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier">TimeOfDay</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#midnight"><span class="hs-identifier">midnight</span></a></span><span class="hs-special">,</span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#midday"><span class="hs-identifier">midday</span></a></span><span class="hs-special">,</span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#makeTimeOfDayValid"><span class="hs-identifier">makeTimeOfDayValid</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-6"></span><span>    </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#timeToDaysAndTimeOfDay"><span class="hs-identifier">timeToDaysAndTimeOfDay</span></a></span><span class="hs-special">,</span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#daysAndTimeOfDayToTime"><span class="hs-identifier">daysAndTimeOfDayToTime</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-7"></span><span>    </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#utcToLocalTimeOfDay"><span class="hs-identifier">utcToLocalTimeOfDay</span></a></span><span class="hs-special">,</span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#localToUTCTimeOfDay"><span class="hs-identifier">localToUTCTimeOfDay</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-8"></span><span>    </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#timeToTimeOfDay"><span class="hs-identifier">timeToTimeOfDay</span></a></span><span class="hs-special">,</span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#timeOfDayToTime"><span class="hs-identifier">timeOfDayToTime</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-9"></span><span>    </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#dayFractionToTimeOfDay"><span class="hs-identifier">dayFractionToTimeOfDay</span></a></span><span class="hs-special">,</span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#timeOfDayToDayFraction"><span class="hs-identifier">timeOfDayToDayFraction</span></a></span><span>
</span><span id="line-10"></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-11"></span><span>
</span><span id="line-12"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../deepseq/src/Control.DeepSeq.html#"><span class="hs-identifier">Control.DeepSeq</span></a></span><span>
</span><span id="line-13"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Typeable.html#"><span class="hs-identifier">Data.Typeable</span></a></span><span>
</span><span id="line-14"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Fixed.html#"><span class="hs-identifier">Data.Fixed</span></a></span><span>
</span><span id="line-15"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Data.html#"><span class="hs-identifier">Data.Data</span></a></span><span>
</span><span id="line-16"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.Clock.Internal.DiffTime.html"><span class="hs-identifier">Data.Time.Clock.Internal.DiffTime</span></a></span><span>
</span><span id="line-17"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.Clock.Internal.NominalDiffTime.html"><span class="hs-identifier">Data.Time.Clock.Internal.NominalDiffTime</span></a></span><span>
</span><span id="line-18"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.Calendar.Private.html"><span class="hs-identifier">Data.Time.Calendar.Private</span></a></span><span>
</span><span id="line-19"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeZone.html"><span class="hs-identifier">Data.Time.LocalTime.Internal.TimeZone</span></a></span><span>
</span><span id="line-20"></span><span>
</span><span id="line-21"></span><span>
</span><span id="line-22"></span><span class="hs-comment">-- | Time of day as represented in hour, minute and second (with picoseconds), typically used to express local time of day.</span><span>
</span><span id="line-23"></span><span class="hs-keyword">data</span><span> </span><span id="TimeOfDay"><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-var">TimeOfDay</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="TimeOfDay"><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-var">TimeOfDay</span></a></span></span><span> </span><span class="hs-special">{</span><span>
</span><span id="line-24"></span><span>    </span><span class="hs-comment">-- | range 0 - 23</span><span>
</span><span id="line-25"></span><span>    </span><span id="todHour"><span class="annot"><span class="annottext">TimeOfDay -&gt; Int
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#todHour"><span class="hs-identifier hs-var hs-var">todHour</span></a></span></span><span>    </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span class="hs-special">,</span><span>
</span><span id="line-26"></span><span>    </span><span class="hs-comment">-- | range 0 - 59</span><span>
</span><span id="line-27"></span><span>    </span><span id="todMin"><span class="annot"><span class="annottext">TimeOfDay -&gt; Int
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#todMin"><span class="hs-identifier hs-var hs-var">todMin</span></a></span></span><span>     </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span class="hs-special">,</span><span>
</span><span id="line-28"></span><span>    </span><span class="hs-comment">-- | Note that 0 &lt;= 'todSec' &lt; 61, accomodating leap seconds.</span><span>
</span><span id="line-29"></span><span>    </span><span class="hs-comment">-- Any local minute may have a leap second, since leap seconds happen in all zones simultaneously</span><span>
</span><span id="line-30"></span><span>    </span><span id="todSec"><span class="annot"><span class="annottext">TimeOfDay -&gt; Pico
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#todSec"><span class="hs-identifier hs-var hs-var">todSec</span></a></span></span><span>     </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/Data.Fixed.html#Pico"><span class="hs-identifier hs-type">Pico</span></a></span><span>
</span><span id="line-31"></span><span class="hs-special">}</span><span> </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679071601"><span id="local-6989586621679071608"><span class="annot"><span class="annottext">TimeOfDay -&gt; TimeOfDay -&gt; Bool
(TimeOfDay -&gt; TimeOfDay -&gt; Bool)
-&gt; (TimeOfDay -&gt; TimeOfDay -&gt; Bool) -&gt; Eq TimeOfDay
forall a. (a -&gt; a -&gt; Bool) -&gt; (a -&gt; a -&gt; Bool) -&gt; Eq a
/= :: TimeOfDay -&gt; TimeOfDay -&gt; Bool
$c/= :: TimeOfDay -&gt; TimeOfDay -&gt; Bool
== :: TimeOfDay -&gt; TimeOfDay -&gt; Bool
$c== :: TimeOfDay -&gt; TimeOfDay -&gt; Bool
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var">Eq</span></span></span></span><span class="hs-special">,</span><span id="local-6989586621679071575"><span id="local-6989586621679071577"><span id="local-6989586621679071580"><span id="local-6989586621679071583"><span id="local-6989586621679071586"><span id="local-6989586621679071591"><span id="local-6989586621679071596"><span class="annot"><span class="annottext">Eq TimeOfDay
Eq TimeOfDay
-&gt; (TimeOfDay -&gt; TimeOfDay -&gt; Ordering)
-&gt; (TimeOfDay -&gt; TimeOfDay -&gt; Bool)
-&gt; (TimeOfDay -&gt; TimeOfDay -&gt; Bool)
-&gt; (TimeOfDay -&gt; TimeOfDay -&gt; Bool)
-&gt; (TimeOfDay -&gt; TimeOfDay -&gt; Bool)
-&gt; (TimeOfDay -&gt; TimeOfDay -&gt; TimeOfDay)
-&gt; (TimeOfDay -&gt; TimeOfDay -&gt; TimeOfDay)
-&gt; Ord TimeOfDay
TimeOfDay -&gt; TimeOfDay -&gt; Bool
TimeOfDay -&gt; TimeOfDay -&gt; Ordering
TimeOfDay -&gt; TimeOfDay -&gt; TimeOfDay
forall a.
Eq a
-&gt; (a -&gt; a -&gt; Ordering)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; a)
-&gt; (a -&gt; a -&gt; a)
-&gt; Ord a
min :: TimeOfDay -&gt; TimeOfDay -&gt; TimeOfDay
$cmin :: TimeOfDay -&gt; TimeOfDay -&gt; TimeOfDay
max :: TimeOfDay -&gt; TimeOfDay -&gt; TimeOfDay
$cmax :: TimeOfDay -&gt; TimeOfDay -&gt; TimeOfDay
&gt;= :: TimeOfDay -&gt; TimeOfDay -&gt; Bool
$c&gt;= :: TimeOfDay -&gt; TimeOfDay -&gt; Bool
&gt; :: TimeOfDay -&gt; TimeOfDay -&gt; Bool
$c&gt; :: TimeOfDay -&gt; TimeOfDay -&gt; Bool
&lt;= :: TimeOfDay -&gt; TimeOfDay -&gt; Bool
$c&lt;= :: TimeOfDay -&gt; TimeOfDay -&gt; Bool
&lt; :: TimeOfDay -&gt; TimeOfDay -&gt; Bool
$c&lt; :: TimeOfDay -&gt; TimeOfDay -&gt; Bool
compare :: TimeOfDay -&gt; TimeOfDay -&gt; Ordering
$ccompare :: TimeOfDay -&gt; TimeOfDay -&gt; Ordering
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Ord</span></span></span></span></span></span></span></span></span><span class="hs-special">,</span><span id="local-6989586621679071532"><span id="local-6989586621679071534"><span id="local-6989586621679071536"><span id="local-6989586621679071538"><span id="local-6989586621679071540"><span id="local-6989586621679071542"><span id="local-6989586621679071544"><span id="local-6989586621679071546"><span id="local-6989586621679071548"><span id="local-6989586621679071550"><span id="local-6989586621679071552"><span id="local-6989586621679071554"><span id="local-6989586621679071561"><span id="local-6989586621679071570"><span class="annot"><span class="annottext">Typeable TimeOfDay
Typeable TimeOfDay
-&gt; (forall (c :: * -&gt; *).
    (forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
    -&gt; (forall g. g -&gt; c g) -&gt; TimeOfDay -&gt; c TimeOfDay)
-&gt; (forall (c :: * -&gt; *).
    (forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
    -&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c TimeOfDay)
-&gt; (TimeOfDay -&gt; Constr)
-&gt; (TimeOfDay -&gt; DataType)
-&gt; (forall (t :: * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d. Data d =&gt; c (t d)) -&gt; Maybe (c TimeOfDay))
-&gt; (forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c TimeOfDay))
-&gt; ((forall b. Data b =&gt; b -&gt; b) -&gt; TimeOfDay -&gt; TimeOfDay)
-&gt; (forall r r'.
    (r -&gt; r' -&gt; r)
    -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; TimeOfDay -&gt; r)
-&gt; (forall r r'.
    (r' -&gt; r -&gt; r)
    -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; TimeOfDay -&gt; r)
-&gt; (forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; TimeOfDay -&gt; [u])
-&gt; (forall u.
    Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; TimeOfDay -&gt; u)
-&gt; (forall (m :: * -&gt; *).
    Monad m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; TimeOfDay -&gt; m TimeOfDay)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; TimeOfDay -&gt; m TimeOfDay)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; TimeOfDay -&gt; m TimeOfDay)
-&gt; Data TimeOfDay
TimeOfDay -&gt; DataType
TimeOfDay -&gt; Constr
(forall b. Data b =&gt; b -&gt; b) -&gt; TimeOfDay -&gt; TimeOfDay
forall a.
Typeable a
-&gt; (forall (c :: * -&gt; *).
    (forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
    -&gt; (forall g. g -&gt; c g) -&gt; a -&gt; c a)
-&gt; (forall (c :: * -&gt; *).
    (forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
    -&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c a)
-&gt; (a -&gt; Constr)
-&gt; (a -&gt; DataType)
-&gt; (forall (t :: * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d. Data d =&gt; c (t d)) -&gt; Maybe (c a))
-&gt; (forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c a))
-&gt; ((forall b. Data b =&gt; b -&gt; b) -&gt; a -&gt; a)
-&gt; (forall r r'.
    (r -&gt; r' -&gt; r) -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; a -&gt; r)
-&gt; (forall r r'.
    (r' -&gt; r -&gt; r) -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; a -&gt; r)
-&gt; (forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; a -&gt; [u])
-&gt; (forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; a -&gt; u)
-&gt; (forall (m :: * -&gt; *).
    Monad m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; Data a
forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; TimeOfDay -&gt; u
forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; TimeOfDay -&gt; [u]
forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; TimeOfDay -&gt; r
forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; TimeOfDay -&gt; r
forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; TimeOfDay -&gt; m TimeOfDay
forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; TimeOfDay -&gt; m TimeOfDay
forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c TimeOfDay
forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; TimeOfDay -&gt; c TimeOfDay
forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c TimeOfDay)
forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c TimeOfDay)
gmapMo :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; TimeOfDay -&gt; m TimeOfDay
$cgmapMo :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; TimeOfDay -&gt; m TimeOfDay
gmapMp :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; TimeOfDay -&gt; m TimeOfDay
$cgmapMp :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; TimeOfDay -&gt; m TimeOfDay
gmapM :: forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; TimeOfDay -&gt; m TimeOfDay
$cgmapM :: forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; TimeOfDay -&gt; m TimeOfDay
gmapQi :: forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; TimeOfDay -&gt; u
$cgmapQi :: forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; TimeOfDay -&gt; u
gmapQ :: forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; TimeOfDay -&gt; [u]
$cgmapQ :: forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; TimeOfDay -&gt; [u]
gmapQr :: forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; TimeOfDay -&gt; r
$cgmapQr :: forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; TimeOfDay -&gt; r
gmapQl :: forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; TimeOfDay -&gt; r
$cgmapQl :: forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; TimeOfDay -&gt; r
gmapT :: (forall b. Data b =&gt; b -&gt; b) -&gt; TimeOfDay -&gt; TimeOfDay
$cgmapT :: (forall b. Data b =&gt; b -&gt; b) -&gt; TimeOfDay -&gt; TimeOfDay
dataCast2 :: forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c TimeOfDay)
$cdataCast2 :: forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c TimeOfDay)
dataCast1 :: forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c TimeOfDay)
$cdataCast1 :: forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c TimeOfDay)
dataTypeOf :: TimeOfDay -&gt; DataType
$cdataTypeOf :: TimeOfDay -&gt; DataType
toConstr :: TimeOfDay -&gt; Constr
$ctoConstr :: TimeOfDay -&gt; Constr
gunfold :: forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c TimeOfDay
$cgunfold :: forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c TimeOfDay
gfoldl :: forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; TimeOfDay -&gt; c TimeOfDay
$cgfoldl :: forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; TimeOfDay -&gt; c TimeOfDay
</span><a href="../../base/src/Data.Data.html#Data"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Data</span></a></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../base/src/Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-32"></span><span>
</span><span id="line-33"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="../../deepseq/src/Control.DeepSeq.html#NFData"><span class="hs-identifier hs-type">NFData</span></a></span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-34"></span><span>    </span><span id="local-6989586621679071520"><span class="annot"><span class="annottext">rnf :: TimeOfDay -&gt; ()
</span><a href="../../deepseq/src/Control.DeepSeq.html#rnf"><span class="hs-identifier hs-var hs-var hs-var hs-var">rnf</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span> </span><span id="local-6989586621679071518"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071518"><span class="hs-identifier hs-var">h</span></a></span></span><span> </span><span id="local-6989586621679071517"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071517"><span class="hs-identifier hs-var">m</span></a></span></span><span> </span><span id="local-6989586621679071516"><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071516"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; ()
forall a. NFData a =&gt; a -&gt; ()
</span><a href="../../deepseq/src/Control.DeepSeq.html#rnf"><span class="hs-identifier hs-var">rnf</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071518"><span class="hs-identifier hs-var">h</span></a></span><span> </span><span class="annot"><span class="annottext">() -&gt; () -&gt; ()
</span><span class="hs-operator hs-var">`seq`</span></span><span> </span><span class="annot"><span class="annottext">Int -&gt; ()
forall a. NFData a =&gt; a -&gt; ()
</span><a href="../../deepseq/src/Control.DeepSeq.html#rnf"><span class="hs-identifier hs-var">rnf</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071517"><span class="hs-identifier hs-var">m</span></a></span><span> </span><span class="annot"><span class="annottext">() -&gt; () -&gt; ()
</span><span class="hs-operator hs-var">`seq`</span></span><span> </span><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071516"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="annot"><span class="annottext">Pico -&gt; () -&gt; ()
</span><span class="hs-operator hs-var">`seq`</span></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span> </span><span class="hs-comment">-- FIXME: Data.Fixed had no NFData instances yet at time of writing</span><span>
</span><span id="line-35"></span><span>
</span><span id="line-36"></span><span class="hs-comment">-- | Hour zero</span><span>
</span><span id="line-37"></span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#midnight"><span class="hs-identifier hs-type">midnight</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span>
</span><span id="line-38"></span><span id="midnight"><span class="annot"><span class="annottext">midnight :: TimeOfDay
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#midnight"><span class="hs-identifier hs-var hs-var">midnight</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Pico -&gt; TimeOfDay
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-var">TimeOfDay</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span> </span><span class="annot"><span class="annottext">Pico
</span><span class="hs-number">0</span></span><span>
</span><span id="line-39"></span><span>
</span><span id="line-40"></span><span class="hs-comment">-- | Hour twelve</span><span>
</span><span id="line-41"></span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#midday"><span class="hs-identifier hs-type">midday</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span>
</span><span id="line-42"></span><span id="midday"><span class="annot"><span class="annottext">midday :: TimeOfDay
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#midday"><span class="hs-identifier hs-var hs-var">midday</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Pico -&gt; TimeOfDay
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-var">TimeOfDay</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">12</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span> </span><span class="annot"><span class="annottext">Pico
</span><span class="hs-number">0</span></span><span>
</span><span id="line-43"></span><span>
</span><span id="line-44"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679071511"><span id="local-6989586621679071514"><span class="annot"><a href="../../base/src/GHC.Show.html#Show"><span class="hs-identifier hs-type">Show</span></a></span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-45"></span><span>    </span><span id="local-6989586621679071506"><span class="annot"><span class="annottext">show :: TimeOfDay -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var hs-var hs-var hs-var">show</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span> </span><span id="local-6989586621679071504"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071504"><span class="hs-identifier hs-var">h</span></a></span></span><span> </span><span id="local-6989586621679071503"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071503"><span class="hs-identifier hs-var">m</span></a></span></span><span> </span><span id="local-6989586621679071502"><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071502"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int -&gt; String
forall t. ShowPadded t =&gt; t -&gt; String
</span><a href="Data.Time.Calendar.Private.html#show2"><span class="hs-identifier hs-var">show2</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071504"><span class="hs-identifier hs-var">h</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;:&quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int -&gt; String
forall t. ShowPadded t =&gt; t -&gt; String
</span><a href="Data.Time.Calendar.Private.html#show2"><span class="hs-identifier hs-var">show2</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071503"><span class="hs-identifier hs-var">m</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;:&quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Pico -&gt; String
</span><a href="Data.Time.Calendar.Private.html#show2Fixed"><span class="hs-identifier hs-var">show2Fixed</span></a></span><span> </span><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071502"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-46"></span><span>
</span><span id="line-47"></span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#makeTimeOfDayValid"><span class="hs-identifier hs-type">makeTimeOfDayValid</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/Data.Fixed.html#Pico"><span class="hs-identifier hs-type">Pico</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span>
</span><span id="line-48"></span><span id="makeTimeOfDayValid"><span class="annot"><span class="annottext">makeTimeOfDayValid :: Int -&gt; Int -&gt; Pico -&gt; Maybe TimeOfDay
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#makeTimeOfDayValid"><span class="hs-identifier hs-var hs-var">makeTimeOfDayValid</span></a></span></span><span> </span><span id="local-6989586621679071499"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071499"><span class="hs-identifier hs-var">h</span></a></span></span><span> </span><span id="local-6989586621679071498"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071498"><span class="hs-identifier hs-var">m</span></a></span></span><span> </span><span id="local-6989586621679071497"><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071497"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-49"></span><span>    </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int -&gt; Maybe Int
forall t. Ord t =&gt; t -&gt; t -&gt; t -&gt; Maybe t
</span><a href="Data.Time.Calendar.Private.html#clipValid"><span class="hs-identifier hs-var">clipValid</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">23</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071499"><span class="hs-identifier hs-var">h</span></a></span><span>
</span><span id="line-50"></span><span>    </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int -&gt; Maybe Int
forall t. Ord t =&gt; t -&gt; t -&gt; t -&gt; Maybe t
</span><a href="Data.Time.Calendar.Private.html#clipValid"><span class="hs-identifier hs-var">clipValid</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">59</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071498"><span class="hs-identifier hs-var">m</span></a></span><span>
</span><span id="line-51"></span><span>    </span><span class="annot"><span class="annottext">Pico
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">Pico -&gt; Pico -&gt; Pico -&gt; Maybe Pico
forall t. Ord t =&gt; t -&gt; t -&gt; t -&gt; Maybe t
</span><a href="Data.Time.Calendar.Private.html#clipValid"><span class="hs-identifier hs-var">clipValid</span></a></span><span> </span><span class="annot"><span class="annottext">Pico
</span><span class="hs-number">0</span></span><span> </span><span class="annot"><span class="annottext">Pico
</span><span class="hs-number">60.999999999999</span></span><span> </span><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071497"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-52"></span><span>    </span><span class="annot"><span class="annottext">TimeOfDay -&gt; Maybe TimeOfDay
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Pico -&gt; TimeOfDay
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-var">TimeOfDay</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071499"><span class="hs-identifier hs-var">h</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071498"><span class="hs-identifier hs-var">m</span></a></span><span> </span><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071497"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-53"></span><span>
</span><span id="line-54"></span><span class="hs-comment">-- | Convert a period of time into a count of days and a time of day since midnight.</span><span>
</span><span id="line-55"></span><span class="hs-comment">-- The time of day will never have a leap second.</span><span>
</span><span id="line-56"></span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#timeToDaysAndTimeOfDay"><span class="hs-identifier hs-type">timeToDaysAndTimeOfDay</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.Clock.Internal.NominalDiffTime.html#NominalDiffTime"><span class="hs-identifier hs-type">NominalDiffTime</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="hs-identifier hs-type">Integer</span></span><span class="hs-special">,</span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-57"></span><span id="timeToDaysAndTimeOfDay"><span class="annot"><span class="annottext">timeToDaysAndTimeOfDay :: NominalDiffTime -&gt; (Integer, TimeOfDay)
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#timeToDaysAndTimeOfDay"><span class="hs-identifier hs-var hs-var">timeToDaysAndTimeOfDay</span></a></span></span><span> </span><span id="local-6989586621679071495"><span class="annot"><span class="annottext">NominalDiffTime
</span><a href="#local-6989586621679071495"><span class="hs-identifier hs-var">dt</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">let</span><span>
</span><span id="line-58"></span><span>    </span><span id="local-6989586621679071491"><span class="annot"><span class="annottext">s :: Pico
</span><a href="#local-6989586621679071491"><span class="hs-identifier hs-var hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NominalDiffTime -&gt; Pico
forall a b. (Real a, Fractional b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#realToFrac"><span class="hs-identifier hs-var">realToFrac</span></a></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime
</span><a href="#local-6989586621679071495"><span class="hs-identifier hs-var">dt</span></a></span><span>
</span><span id="line-59"></span><span>    </span><span class="hs-special">(</span><span id="local-6989586621679071487"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071487"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679071486"><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071486"><span class="hs-identifier hs-var">ms</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Pico -&gt; Pico -&gt; (Int, Pico)
forall a b. (Real a, Integral b) =&gt; a -&gt; a -&gt; (b, a)
</span><a href="../../base/src/Data.Fixed.html#divMod%27"><span class="hs-identifier hs-var">divMod'</span></a></span><span> </span><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071491"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="annot"><span class="annottext">Pico
</span><span class="hs-number">60</span></span><span>
</span><span id="line-60"></span><span>    </span><span class="hs-special">(</span><span id="local-6989586621679071481"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071481"><span class="hs-identifier hs-var">h</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679071480"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071480"><span class="hs-identifier hs-var">hm</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; (Int, Int)
forall a b. (Real a, Integral b) =&gt; a -&gt; a -&gt; (b, a)
</span><a href="../../base/src/Data.Fixed.html#divMod%27"><span class="hs-identifier hs-var">divMod'</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071487"><span class="hs-identifier hs-var">m</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">60</span></span><span>
</span><span id="line-61"></span><span>    </span><span class="hs-special">(</span><span id="local-6989586621679071476"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679071476"><span class="hs-identifier hs-var">d</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679071475"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071475"><span class="hs-identifier hs-var">dh</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; (Integer, Int)
forall a b. (Real a, Integral b) =&gt; a -&gt; a -&gt; (b, a)
</span><a href="../../base/src/Data.Fixed.html#divMod%27"><span class="hs-identifier hs-var">divMod'</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071481"><span class="hs-identifier hs-var">h</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">24</span></span><span>
</span><span id="line-62"></span><span>    </span><span class="hs-keyword">in</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679071476"><span class="hs-identifier hs-var">d</span></a></span><span class="hs-special">,</span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Pico -&gt; TimeOfDay
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-var">TimeOfDay</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071475"><span class="hs-identifier hs-var">dh</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071480"><span class="hs-identifier hs-var">hm</span></a></span><span> </span><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071486"><span class="hs-identifier hs-var">ms</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-63"></span><span>
</span><span id="line-64"></span><span class="hs-comment">-- | Convert a count of days and a time of day since midnight into a period of time.</span><span>
</span><span id="line-65"></span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#daysAndTimeOfDayToTime"><span class="hs-identifier hs-type">daysAndTimeOfDayToTime</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Integer</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.Clock.Internal.NominalDiffTime.html#NominalDiffTime"><span class="hs-identifier hs-type">NominalDiffTime</span></a></span><span>
</span><span id="line-66"></span><span id="daysAndTimeOfDayToTime"><span class="annot"><span class="annottext">daysAndTimeOfDayToTime :: Integer -&gt; TimeOfDay -&gt; NominalDiffTime
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#daysAndTimeOfDayToTime"><span class="hs-identifier hs-var hs-var">daysAndTimeOfDayToTime</span></a></span></span><span> </span><span id="local-6989586621679071474"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679071474"><span class="hs-identifier hs-var">d</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span> </span><span id="local-6989586621679071473"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071473"><span class="hs-identifier hs-var">dh</span></a></span></span><span> </span><span id="local-6989586621679071472"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071472"><span class="hs-identifier hs-var">hm</span></a></span></span><span> </span><span id="local-6989586621679071471"><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071471"><span class="hs-identifier hs-var">ms</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NominalDiffTime -&gt; NominalDiffTime -&gt; NominalDiffTime
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">(+)</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Pico -&gt; NominalDiffTime
forall a b. (Real a, Fractional b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#realToFrac"><span class="hs-identifier hs-var">realToFrac</span></a></span><span> </span><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071471"><span class="hs-identifier hs-var">ms</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">(NominalDiffTime -&gt; NominalDiffTime)
-&gt; NominalDiffTime -&gt; NominalDiffTime
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime -&gt; NominalDiffTime -&gt; NominalDiffTime
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2A"><span class="hs-operator hs-var">(*)</span></a></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime
</span><span class="hs-number">60</span></span><span> </span><span class="annot"><span class="annottext">(NominalDiffTime -&gt; NominalDiffTime)
-&gt; NominalDiffTime -&gt; NominalDiffTime
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime -&gt; NominalDiffTime -&gt; NominalDiffTime
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">(+)</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int -&gt; NominalDiffTime
forall a b. (Real a, Fractional b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#realToFrac"><span class="hs-identifier hs-var">realToFrac</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071472"><span class="hs-identifier hs-var">hm</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">(NominalDiffTime -&gt; NominalDiffTime)
-&gt; NominalDiffTime -&gt; NominalDiffTime
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime -&gt; NominalDiffTime -&gt; NominalDiffTime
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2A"><span class="hs-operator hs-var">(*)</span></a></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime
</span><span class="hs-number">60</span></span><span> </span><span class="annot"><span class="annottext">(NominalDiffTime -&gt; NominalDiffTime)
-&gt; NominalDiffTime -&gt; NominalDiffTime
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime -&gt; NominalDiffTime -&gt; NominalDiffTime
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">(+)</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int -&gt; NominalDiffTime
forall a b. (Real a, Fractional b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#realToFrac"><span class="hs-identifier hs-var">realToFrac</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071473"><span class="hs-identifier hs-var">dh</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">(NominalDiffTime -&gt; NominalDiffTime)
-&gt; NominalDiffTime -&gt; NominalDiffTime
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime -&gt; NominalDiffTime -&gt; NominalDiffTime
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2A"><span class="hs-operator hs-var">(*)</span></a></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime
</span><span class="hs-number">24</span></span><span> </span><span class="annot"><span class="annottext">(NominalDiffTime -&gt; NominalDiffTime)
-&gt; NominalDiffTime -&gt; NominalDiffTime
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Integer -&gt; NominalDiffTime
forall a b. (Real a, Fractional b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#realToFrac"><span class="hs-identifier hs-var">realToFrac</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679071474"><span class="hs-identifier hs-var">d</span></a></span><span>
</span><span id="line-67"></span><span>
</span><span id="line-68"></span><span class="hs-comment">-- | Convert a time of day in UTC to a time of day in some timezone, together with a day adjustment.</span><span>
</span><span id="line-69"></span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#utcToLocalTimeOfDay"><span class="hs-identifier hs-type">utcToLocalTimeOfDay</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeZone.html#TimeZone"><span class="hs-identifier hs-type">TimeZone</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="hs-identifier hs-type">Integer</span></span><span class="hs-special">,</span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-70"></span><span id="utcToLocalTimeOfDay"><span class="annot"><span class="annottext">utcToLocalTimeOfDay :: TimeZone -&gt; TimeOfDay -&gt; (Integer, TimeOfDay)
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#utcToLocalTimeOfDay"><span class="hs-identifier hs-var hs-var">utcToLocalTimeOfDay</span></a></span></span><span> </span><span id="local-6989586621679071468"><span class="annot"><span class="annottext">TimeZone
</span><a href="#local-6989586621679071468"><span class="hs-identifier hs-var">zone</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span> </span><span id="local-6989586621679071467"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071467"><span class="hs-identifier hs-var">h</span></a></span></span><span> </span><span id="local-6989586621679071466"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071466"><span class="hs-identifier hs-var">m</span></a></span></span><span> </span><span id="local-6989586621679071465"><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071465"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int -&gt; Integer
forall a b. (Integral a, Num b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#fromIntegral"><span class="hs-identifier hs-var">fromIntegral</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Integral a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Real.html#div"><span class="hs-identifier hs-var">div</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071463"><span class="hs-identifier hs-var">h'</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">24</span></span><span class="hs-special">)</span><span class="hs-special">,</span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Pico -&gt; TimeOfDay
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-var">TimeOfDay</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Integral a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Real.html#mod"><span class="hs-identifier hs-var">mod</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071463"><span class="hs-identifier hs-var">h'</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">24</span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Integral a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Real.html#mod"><span class="hs-identifier hs-var">mod</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071461"><span class="hs-identifier hs-var">m'</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">60</span></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071465"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-71"></span><span>    </span><span id="local-6989586621679071461"><span class="annot"><span class="annottext">m' :: Int
</span><a href="#local-6989586621679071461"><span class="hs-identifier hs-var hs-var">m'</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071466"><span class="hs-identifier hs-var">m</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span> </span><span class="annot"><span class="annottext">TimeZone -&gt; Int
</span><a href="Data.Time.LocalTime.Internal.TimeZone.html#timeZoneMinutes"><span class="hs-identifier hs-var hs-var">timeZoneMinutes</span></a></span><span> </span><span class="annot"><span class="annottext">TimeZone
</span><a href="#local-6989586621679071468"><span class="hs-identifier hs-var">zone</span></a></span><span>
</span><span id="line-72"></span><span>    </span><span id="local-6989586621679071463"><span class="annot"><span class="annottext">h' :: Int
</span><a href="#local-6989586621679071463"><span class="hs-identifier hs-var hs-var">h'</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071467"><span class="hs-identifier hs-var">h</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Integral a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Real.html#div"><span class="hs-identifier hs-var">div</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071461"><span class="hs-identifier hs-var">m'</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">60</span></span><span class="hs-special">)</span><span>
</span><span id="line-73"></span><span>
</span><span id="line-74"></span><span class="hs-comment">-- | Convert a time of day in some timezone to a time of day in UTC, together with a day adjustment.</span><span>
</span><span id="line-75"></span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#localToUTCTimeOfDay"><span class="hs-identifier hs-type">localToUTCTimeOfDay</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeZone.html#TimeZone"><span class="hs-identifier hs-type">TimeZone</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="hs-identifier hs-type">Integer</span></span><span class="hs-special">,</span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-76"></span><span id="localToUTCTimeOfDay"><span class="annot"><span class="annottext">localToUTCTimeOfDay :: TimeZone -&gt; TimeOfDay -&gt; (Integer, TimeOfDay)
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#localToUTCTimeOfDay"><span class="hs-identifier hs-var hs-var">localToUTCTimeOfDay</span></a></span></span><span> </span><span id="local-6989586621679071455"><span class="annot"><span class="annottext">TimeZone
</span><a href="#local-6989586621679071455"><span class="hs-identifier hs-var">zone</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">TimeZone -&gt; TimeOfDay -&gt; (Integer, TimeOfDay)
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#utcToLocalTimeOfDay"><span class="hs-identifier hs-var">utcToLocalTimeOfDay</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int -&gt; TimeZone
</span><a href="Data.Time.LocalTime.Internal.TimeZone.html#minutesToTimeZone"><span class="hs-identifier hs-var">minutesToTimeZone</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int -&gt; Int
forall a. Num a =&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#negate"><span class="hs-identifier hs-var">negate</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">TimeZone -&gt; Int
</span><a href="Data.Time.LocalTime.Internal.TimeZone.html#timeZoneMinutes"><span class="hs-identifier hs-var hs-var">timeZoneMinutes</span></a></span><span> </span><span class="annot"><span class="annottext">TimeZone
</span><a href="#local-6989586621679071455"><span class="hs-identifier hs-var">zone</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-77"></span><span>
</span><span id="line-78"></span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#posixDayLength"><span class="hs-identifier hs-type">posixDayLength</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.Clock.Internal.DiffTime.html#DiffTime"><span class="hs-identifier hs-type">DiffTime</span></a></span><span>
</span><span id="line-79"></span><span id="posixDayLength"><span class="annot"><span class="annottext">posixDayLength :: DiffTime
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#posixDayLength"><span class="hs-identifier hs-var hs-var">posixDayLength</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Integer -&gt; DiffTime
forall a. Num a =&gt; Integer -&gt; a
</span><a href="../../base/src/GHC.Num.html#fromInteger"><span class="hs-identifier hs-var">fromInteger</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><span class="hs-number">86400</span></span><span>
</span><span id="line-80"></span><span>
</span><span id="line-81"></span><span class="hs-comment">-- | Get the time of day given a time since midnight.</span><span>
</span><span id="line-82"></span><span class="hs-comment">-- Time more than 24h will be converted to leap-seconds.</span><span>
</span><span id="line-83"></span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#timeToTimeOfDay"><span class="hs-identifier hs-type">timeToTimeOfDay</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.Clock.Internal.DiffTime.html#DiffTime"><span class="hs-identifier hs-type">DiffTime</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span>
</span><span id="line-84"></span><span id="timeToTimeOfDay"><span class="annot"><span class="annottext">timeToTimeOfDay :: DiffTime -&gt; TimeOfDay
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#timeToTimeOfDay"><span class="hs-identifier hs-var hs-var">timeToTimeOfDay</span></a></span></span><span> </span><span id="local-6989586621679071452"><span class="annot"><span class="annottext">DiffTime
</span><a href="#local-6989586621679071452"><span class="hs-identifier hs-var">dt</span></a></span></span><span> </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">DiffTime
</span><a href="#local-6989586621679071452"><span class="hs-identifier hs-var">dt</span></a></span><span> </span><span class="annot"><span class="annottext">DiffTime -&gt; DiffTime -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&gt;=</span></span><span> </span><span class="annot"><span class="annottext">DiffTime
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#posixDayLength"><span class="hs-identifier hs-var">posixDayLength</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Pico -&gt; TimeOfDay
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-var">TimeOfDay</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">23</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">59</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Pico
</span><span class="hs-number">60</span></span><span> </span><span class="annot"><span class="annottext">Pico -&gt; Pico -&gt; Pico
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">DiffTime -&gt; Pico
forall a b. (Real a, Fractional b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#realToFrac"><span class="hs-identifier hs-var">realToFrac</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">DiffTime
</span><a href="#local-6989586621679071452"><span class="hs-identifier hs-var">dt</span></a></span><span> </span><span class="annot"><span class="annottext">DiffTime -&gt; DiffTime -&gt; DiffTime
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">DiffTime
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#posixDayLength"><span class="hs-identifier hs-var">posixDayLength</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-85"></span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#timeToTimeOfDay"><span class="hs-identifier hs-var">timeToTimeOfDay</span></a></span><span> </span><span id="local-6989586621679071451"><span class="annot"><span class="annottext">DiffTime
</span><a href="#local-6989586621679071451"><span class="hs-identifier hs-var">dt</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Pico -&gt; TimeOfDay
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-var">TimeOfDay</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Integer -&gt; Int
forall a. Num a =&gt; Integer -&gt; a
</span><a href="../../base/src/GHC.Num.html#fromInteger"><span class="hs-identifier hs-var">fromInteger</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679071450"><span class="hs-identifier hs-var">h</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Integer -&gt; Int
forall a. Num a =&gt; Integer -&gt; a
</span><a href="../../base/src/GHC.Num.html#fromInteger"><span class="hs-identifier hs-var">fromInteger</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679071449"><span class="hs-identifier hs-var">m</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071448"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-86"></span><span>    </span><span id="local-6989586621679071445"><span class="annot"><span class="annottext">s' :: Pico
</span><a href="#local-6989586621679071445"><span class="hs-identifier hs-var hs-var">s'</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">DiffTime -&gt; Pico
forall a b. (Real a, Fractional b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#realToFrac"><span class="hs-identifier hs-var">realToFrac</span></a></span><span> </span><span class="annot"><span class="annottext">DiffTime
</span><a href="#local-6989586621679071451"><span class="hs-identifier hs-var">dt</span></a></span><span>
</span><span id="line-87"></span><span>    </span><span id="local-6989586621679071448"><span class="annot"><span class="annottext">s :: Pico
</span><a href="#local-6989586621679071448"><span class="hs-identifier hs-var hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Pico -&gt; Pico -&gt; Pico
forall a. Real a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/Data.Fixed.html#mod%27"><span class="hs-identifier hs-var">mod'</span></a></span><span> </span><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071445"><span class="hs-identifier hs-var">s'</span></a></span><span> </span><span class="annot"><span class="annottext">Pico
</span><span class="hs-number">60</span></span><span>
</span><span id="line-88"></span><span>    </span><span id="local-6989586621679071438"><span class="annot"><span class="annottext">m' :: Integer
</span><a href="#local-6989586621679071438"><span class="hs-identifier hs-var hs-var">m'</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Pico -&gt; Pico -&gt; Integer
forall a b. (Real a, Integral b) =&gt; a -&gt; a -&gt; b
</span><a href="../../base/src/Data.Fixed.html#div%27"><span class="hs-identifier hs-var">div'</span></a></span><span> </span><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071445"><span class="hs-identifier hs-var">s'</span></a></span><span> </span><span class="annot"><span class="annottext">Pico
</span><span class="hs-number">60</span></span><span>
</span><span id="line-89"></span><span>    </span><span id="local-6989586621679071449"><span class="annot"><span class="annottext">m :: Integer
</span><a href="#local-6989586621679071449"><span class="hs-identifier hs-var hs-var">m</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Integer -&gt; Integer
forall a. Real a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/Data.Fixed.html#mod%27"><span class="hs-identifier hs-var">mod'</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679071438"><span class="hs-identifier hs-var">m'</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><span class="hs-number">60</span></span><span>
</span><span id="line-90"></span><span>    </span><span id="local-6989586621679071450"><span class="annot"><span class="annottext">h :: Integer
</span><a href="#local-6989586621679071450"><span class="hs-identifier hs-var hs-var">h</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Integer -&gt; Integer
forall a b. (Real a, Integral b) =&gt; a -&gt; a -&gt; b
</span><a href="../../base/src/Data.Fixed.html#div%27"><span class="hs-identifier hs-var">div'</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679071438"><span class="hs-identifier hs-var">m'</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><span class="hs-number">60</span></span><span>
</span><span id="line-91"></span><span>
</span><span id="line-92"></span><span class="hs-comment">-- | Get the time since midnight for a given time of day.</span><span>
</span><span id="line-93"></span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#timeOfDayToTime"><span class="hs-identifier hs-type">timeOfDayToTime</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.Clock.Internal.DiffTime.html#DiffTime"><span class="hs-identifier hs-type">DiffTime</span></a></span><span>
</span><span id="line-94"></span><span id="timeOfDayToTime"><span class="annot"><span class="annottext">timeOfDayToTime :: TimeOfDay -&gt; DiffTime
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#timeOfDayToTime"><span class="hs-identifier hs-var hs-var">timeOfDayToTime</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span> </span><span id="local-6989586621679071431"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071431"><span class="hs-identifier hs-var">h</span></a></span></span><span> </span><span id="local-6989586621679071430"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071430"><span class="hs-identifier hs-var">m</span></a></span></span><span> </span><span id="local-6989586621679071429"><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071429"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int -&gt; DiffTime
forall a b. (Integral a, Num b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#fromIntegral"><span class="hs-identifier hs-var">fromIntegral</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071431"><span class="hs-identifier hs-var">h</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">DiffTime -&gt; DiffTime -&gt; DiffTime
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2A"><span class="hs-operator hs-var">*</span></a></span><span> </span><span class="annot"><span class="annottext">DiffTime
</span><span class="hs-number">60</span></span><span> </span><span class="annot"><span class="annottext">DiffTime -&gt; DiffTime -&gt; DiffTime
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int -&gt; DiffTime
forall a b. (Integral a, Num b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#fromIntegral"><span class="hs-identifier hs-var">fromIntegral</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679071430"><span class="hs-identifier hs-var">m</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">DiffTime -&gt; DiffTime -&gt; DiffTime
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2A"><span class="hs-operator hs-var">*</span></a></span><span> </span><span class="annot"><span class="annottext">DiffTime
</span><span class="hs-number">60</span></span><span> </span><span class="annot"><span class="annottext">DiffTime -&gt; DiffTime -&gt; DiffTime
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Pico -&gt; DiffTime
forall a b. (Real a, Fractional b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#realToFrac"><span class="hs-identifier hs-var">realToFrac</span></a></span><span> </span><span class="annot"><span class="annottext">Pico
</span><a href="#local-6989586621679071429"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-95"></span><span>
</span><span id="line-96"></span><span class="hs-comment">-- | Get the time of day given the fraction of a day since midnight.</span><span>
</span><span id="line-97"></span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#dayFractionToTimeOfDay"><span class="hs-identifier hs-type">dayFractionToTimeOfDay</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Real.html#Rational"><span class="hs-identifier hs-type">Rational</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span>
</span><span id="line-98"></span><span id="dayFractionToTimeOfDay"><span class="annot"><span class="annottext">dayFractionToTimeOfDay :: Rational -&gt; TimeOfDay
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#dayFractionToTimeOfDay"><span class="hs-identifier hs-var hs-var">dayFractionToTimeOfDay</span></a></span></span><span> </span><span id="local-6989586621679071428"><span class="annot"><span class="annottext">Rational
</span><a href="#local-6989586621679071428"><span class="hs-identifier hs-var">df</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">DiffTime -&gt; TimeOfDay
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#timeToTimeOfDay"><span class="hs-identifier hs-var">timeToTimeOfDay</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Rational -&gt; DiffTime
forall a b. (Real a, Fractional b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#realToFrac"><span class="hs-identifier hs-var">realToFrac</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Rational
</span><a href="#local-6989586621679071428"><span class="hs-identifier hs-var">df</span></a></span><span> </span><span class="annot"><span class="annottext">Rational -&gt; Rational -&gt; Rational
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2A"><span class="hs-operator hs-var">*</span></a></span><span> </span><span class="annot"><span class="annottext">Rational
</span><span class="hs-number">86400</span></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-99"></span><span>
</span><span id="line-100"></span><span class="hs-comment">-- | Get the fraction of a day since midnight given a time of day.</span><span>
</span><span id="line-101"></span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#timeOfDayToDayFraction"><span class="hs-identifier hs-type">timeOfDayToDayFraction</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#TimeOfDay"><span class="hs-identifier hs-type">TimeOfDay</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Real.html#Rational"><span class="hs-identifier hs-type">Rational</span></a></span><span>
</span><span id="line-102"></span><span id="timeOfDayToDayFraction"><span class="annot"><span class="annottext">timeOfDayToDayFraction :: TimeOfDay -&gt; Rational
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#timeOfDayToDayFraction"><span class="hs-identifier hs-var hs-var">timeOfDayToDayFraction</span></a></span></span><span> </span><span id="local-6989586621679071427"><span class="annot"><span class="annottext">TimeOfDay
</span><a href="#local-6989586621679071427"><span class="hs-identifier hs-var">tod</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">DiffTime -&gt; Rational
forall a b. (Real a, Fractional b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#realToFrac"><span class="hs-identifier hs-var">realToFrac</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">TimeOfDay -&gt; DiffTime
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#timeOfDayToTime"><span class="hs-identifier hs-var">timeOfDayToTime</span></a></span><span> </span><span class="annot"><span class="annottext">TimeOfDay
</span><a href="#local-6989586621679071427"><span class="hs-identifier hs-var">tod</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Rational -&gt; Rational -&gt; Rational
forall a. Fractional a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Real.html#%2F"><span class="hs-operator hs-var">/</span></a></span><span> </span><span class="annot"><span class="annottext">DiffTime -&gt; Rational
forall a b. (Real a, Fractional b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#realToFrac"><span class="hs-identifier hs-var">realToFrac</span></a></span><span> </span><span class="annot"><span class="annottext">DiffTime
</span><a href="Data.Time.LocalTime.Internal.TimeOfDay.html#posixDayLength"><span class="hs-identifier hs-var">posixDayLength</span></a></span><span>
</span><span id="line-103"></span></pre></body></html>